package com.bocloud.cmp.entity.resource;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.meta.PKStrategy;

/**
 * 子网实体类
 * 
 * @author dongkai
 *
 */
@Table("subnet")
public class Subnet {

	@PK(value = PKStrategy.AUTO)
	private Long id; // ID
	@Column("name")
	private String name;
	@Column("start")
	private String start;
	@Column("end")
	private String end;
	@Column("cidr")
	private String cidr;
	@Column("dhcp_enabled")
	private Boolean dhcpEnabled;
	@Column("gateway")
	private String gateway;
	@Column("dns_names")
	private String dnsNames;
	@Column("host_routes")
	private String hostRoutes;
	@Column("subnet_id")
	private String subnetId;
	@Column("ip_version")
	private String ipVersion;
	@Column("network_id")
	private String networkId;
	@Column("vendor_id")
	private Long vendorId; // 云供应商ID
	@Column("region")
	private Long region;
	@Column("router_id")
	private String routerId;// 路由ID
	@Column("portgroup")
	private String portgroup;// 路由ID
	@Column("mac")
	private String mac;// 路由ID
	@Column("address")
	private String address;// 路由ID

	/**
	 * @return the region
	 */
	public Long getRegion() {
		return region;
	}

	/**
	 * @param region
	 *            the region to set
	 */
	public void setRegion(Long region) {
		this.region = region;
	}

	/**
	 * @return the routerId
	 */
	public String getRouterId() {
		return routerId;
	}

	/**
	 * @param routerId
	 *            the routerId to set
	 */
	public void setRouterId(String routerId) {
		this.routerId = routerId;
	}

	/**
	 * @return the vendorId
	 */
	public Long getVendorId() {
		return vendorId;
	}

	/**
	 * @param vendorId
	 *            the vendorId to set
	 */
	public void setVendorId(Long vendorId) {
		this.vendorId = vendorId;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the start
	 */
	public String getStart() {
		return start;
	}

	/**
	 * @param start
	 *            the start to set
	 */
	public void setStart(String start) {
		this.start = start;
	}

	/**
	 * @return the end
	 */
	public String getEnd() {
		return end;
	}

	/**
	 * @param end
	 *            the end to set
	 */
	public void setEnd(String end) {
		this.end = end;
	}

	/**
	 * @return the cidr
	 */
	public String getCidr() {
		return cidr;
	}

	/**
	 * @param cidr
	 *            the cidr to set
	 */
	public void setCidr(String cidr) {
		this.cidr = cidr;
	}

	/**
	 * @return the dhcpEnabled
	 */
	public Boolean getDhcpEnabled() {
		return dhcpEnabled;
	}

	/**
	 * @param dhcpEnabled
	 *            the dhcpEnabled to set
	 */
	public void setDhcpEnabled(Boolean dhcpEnabled) {
		this.dhcpEnabled = dhcpEnabled;
	}

	/**
	 * @return the gateway
	 */
	public String getGateway() {
		return gateway;
	}

	/**
	 * @param gateway
	 *            the gateway to set
	 */
	public void setGateway(String gateway) {
		this.gateway = gateway;
	}

	/**
	 * @return the dnsNames
	 */
	public String getDnsNames() {
		return dnsNames;
	}

	/**
	 * @param dnsNames
	 *            the dnsNames to set
	 */
	public void setDnsNames(String dnsNames) {
		this.dnsNames = dnsNames;
	}

	/**
	 * @return the hostRoutes
	 */
	public String getHostRoutes() {
		return hostRoutes;
	}

	/**
	 * @param hostRoutes
	 *            the hostRoutes to set
	 */
	public void setHostRoutes(String hostRoutes) {
		this.hostRoutes = hostRoutes;
	}

	/**
	 * @return the subnetId
	 */
	public String getSubnetId() {
		return subnetId;
	}

	/**
	 * @param subnetId
	 *            the subnetId to set
	 */
	public void setSubnetId(String subnetId) {
		this.subnetId = subnetId;
	}

	/**
	 * @return the ipVersion
	 */
	public String getIpVersion() {
		return ipVersion;
	}

	/**
	 * @param ipVersion
	 *            the ipVersion to set
	 */
	public void setIpVersion(String ipVersion) {
		this.ipVersion = ipVersion;
	}

	/**
	 * @return the networkId
	 */
	public String getNetworkId() {
		return networkId;
	}

	/**
	 * @param networkId
	 *            the networkId to set
	 */
	public void setNetworkId(String networkId) {
		this.networkId = networkId;
	}

	public String getPortgroup() {
		return portgroup;
	}

	public void setPortgroup(String portgroup) {
		this.portgroup = portgroup;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

}
